﻿using NutClass.utils;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hander.Customization.Frame.Classification
{
    class ClassifyHelper : UtilsHelper
    {
        public static string Class_Root { get => "Root"; }
        public static string Class_Empty { get => ""; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string GetTechUniqueId()
        {
            
            return Guid.NewGuid().ToString();
        }

    }
    /// <summary>
    /// 根分类：业务和技术 ，TOP
    ///TOP_1, TOP ，SEQ, ‘序列号’,'序列号'
    ///TOP_2,TOP,BUSI,'业务字典','BUSINESS';
    ///TOP_3,TOP,TECH,'技术字典','TECHNICAL';
    ///TOP_4,TOP,SYS,'系统字典','权限角色';
    ///
    ///SEQ_1,SEQ,TOP,4,'顶层分类的当前最大序列号'
    ///SEQ_2,SEQ,SEQ,1,'序列号'
    ///SEQ_3，SEQ,BUSI,1，'业务字典'
    ///
    /// 
    /// BUSI_1，BUSI,'ItemType','事项分类'
    /// 
    /// 
    /// 
    /// 
    /// 
    /// 
    /// </summary>
    class ClassDictionary : TechData
    {
        /// <summary>
        /// 全局唯一技术标示,暂不用
        /// </summary>
        public string ClassMetaId { get; set; }
        #region 分类管理属性
        /// <summary>
        /// 顶层分类
        /// </summary>
        public string ClassType { get; set; }

        /// <summary>
        /// 默认组合
        /// </summary>
        public string ClassDefaultGroup { get; set; }

        #endregion 分类管理属性

        /// <summary>
        /// 技术代码 ，比如 it_aa001，（不应对系统外输出）
        /// </summary>
        public string ClassTechCode { get; set; }
        /// <summary>
        /// 业务代码，不能为空，业务明确无意义时，与技术代码同，加 bs前缀，如bs_it_aa001
        /// </summary>
        public string ClassBusinessCode { get; set; }
        /// <summary>
        /// 所属技术代码
        /// </summary>
        public string ClassTechLeaderCode { get; set; }
        /// <summary>
        /// 业务代码对应的值,可以是汉字，可以是字母等等
        /// </summary>
        public string ClassBusinessValue { get; set; }
        /// <summary>
        /// 显示的短名称
        /// </summary>
        public string ClassShortName { get; set; }

        /// <summary>
        /// 长描述
        /// </summary>
        public string ClassDescription { get; set; }



    }

    enum InnerClassType
    {
        Top, Sequence, Tech, Business, Management,General
    }


}
